package com.common.constant;

import com.entity.*;
import com.vo.SharesHyVsggVo;
import com.vo.SharesZjlx;
import org.apache.hc.client5.http.HttpRoute;
import org.apache.hc.client5.http.auth.AuthCache;

import java.util.*;
import java.util.concurrent.ConcurrentHashMap;

public class SharesConstan {
    public static final Boolean FLAG=false;//true关闭定时任务，false开启
    public static final int A_STATUS = 5;
    public static final String ZF = "zf";
    public static final String CJL = "cjl";
    public static final String GREEN = "green";
    public static final String RED = "red";
    public static final String M5 = "m5";
    public static final String MONTH = "month";
    public static final String WEEK = "week";
    public static final String DAY = "day";
    public static final String FS = "fs";
    public static final String ZDF = "zdf";
    public static final String SZ = "sz";
    public static final String ALL_SHARES="88";
    public static final String GD = "1";//股东大幅度减少
    public static final String GZ = "2";//特别关注
    public static final String HI = "3";//最近异动
    public static final String HPTP="1";//横盘突破
    public static final String BDDD="2";//波段低点
    public static final String WXXH="3";//危险低点
    public static final String END_TIME = "15:02";
    public static final String START_TIME = "11:30";
    public static final int YD_INT = 1;
    public static final String LN = "ln";
    public static final String GN = "gn";
    public static final String STARTS_WITH_ZF = "涨幅突破10";
    public static final String STARTS_WITH_MAVG = "均线突破";
    public static final String STARTS_WITH_YD = "异动";
    public static final String STARTS_WITH_ZG = "突破最高点";

    /**
     * 所属行业占比
     */
    public static Map<String, Integer> SSHY_PERCENT = new HashMap<>();

    public static int ORDERINT=0;

    public static int ASORDERINT=0;

    /**
     * 关注的股，持仓
     */
    public static Map<String,HintShares> GZ_SHARES=new HashMap<>();


    /**
     * 通知过后的股
     */
    public static Map<String, HintCode> INFORM_MAP = new ConcurrentHashMap<>();

    /**
     * 通知过的股
     */
    public static Map<String, HintShares> INFORM_SHARES_MAP = new TreeMap<>();


    /**
     * 发送短信通知过的股
     */
    public static Map<String,String> INFRM_QQ_MAP=new HashMap<>();

    /**
     * 通知过的股
     */
    public static Map<String,  List<HintShares>> ALL_INFORM_SHARES_MAP = new ConcurrentHashMap<>();

    /**
     * 历史通知过的股
     */
    public static Map<String, List<HintCode>> ALL_INFORM_MAP = new ConcurrentHashMap<>();

    /**
     * 解禁股份
     */
    public static Map<String,List<SharesUnfasten>>  ALL_UNFASTEN_MAP=new HashMap<>();

    /**
     * 涨停股
     */
    public static Map<String,SharesDetail> ZT_SHARES_MAP=new HashMap<>();

    /**
     * 前一天的数据
     */
    public static Map<String, CodeCjl> CODE_MAP=new ConcurrentHashMap<>();

    /**
     * 全部股
     */
    public static List<SharesDetail> CODE_LIST=new ArrayList<>();

    /**
     *
     */
    public static List<CodeCjl> CODE_GREEN_LIST=new ArrayList<>();

    /**
     *
     */
    public static List<CodeCjl> CODE_RED_LIST=new ArrayList<>();

    /**
     * 所有股
     */
    public static Map<String, SharesDetail> CODE_DETAIL_MAP=new ConcurrentHashMap<>();

    /**
     *
     */
    public static Map<String,Map<String,List<ShareHolder>>> GD_SHARE_MAP=new HashMap<>();

    /**
     * 股东数据与信息
     */
    public static Map<String,List<ShareHolder>> GD_MAP=new HashMap<>();

    /**
     * 行业资讯
     */
    public static Map<String,List<SharesHyzx>> HYZX_MAP=new HashMap<>();
    /**
     * 公告
     */
    public static Map<String,List<SharesNotice>> NOTICE_MAP=new HashMap<>();
    /**
     * 减持增持
     */
    public static Map<String,List<SharesDirection>> DIRECTION_MAP=new HashMap<>();
    /**
     * 业绩报告
     */
    public static Map<String,List<SharesYjbg>> YJBG_MAP=new HashMap<>();
    /**
     * 业绩预告
     */
    public static Map<String,List<SharesYjyg>> YJYG_MAP=new HashMap<>();
    /**
     * 并购重组
     */
    public static Map<String,List<SharesBgcz>> BGCZ_MAP=new HashMap<>();
    /**
     * 股东数据
     */
    public static Map<String,List<SharesGdnum>> GDNUM_MAP=new HashMap<>();

    /**
     * 概念资金
     */
    public static Map<String,SharesZjlx> GNZJ_MAP=new HashMap<>();
    /**
     * 板块资金
     */
    public static Map<String,SharesZjlx> BKZJ_MAP=new HashMap<>();
    /**
     * 个股资金
     */
    public static Map<String,SharesZjlx> GGZJ_MAP=new HashMap<>();

    /**
     * 行业市盈率
     */
    public static Map<String,SharesHyVsggVo> HYSYL_MAP=new HashMap<>();
    /**
     * 个股市盈率
     */
    public static Map<String,SharesHyVsggVo> GGSYL_MAP=new HashMap<>();
    /**
     * 股东数据变化
     */
    public static Map<String,List<SharesGdChange>> GDCHANGE_MAP=new HashMap<>();

    /** 最近关注的股
     */
    public static Map<String,SharesDetail> GZ_SHARES_MAP=new HashMap<>();

    /** 最近关注的股
     */
    public static Map<String,HintShares> GZ_HINTSHARES_MAP=new HashMap<>();

    /**
     * 最近异常的
     */
    public static Map<String, SharesDetail> HI_SHARES_MAP = new TreeMap<>();

    /**
     * 最近异常的
     */
    public static Map<String, HintShares> HI_HINTSHARES_MAP = new TreeMap<>();

    /**
     * 主营业务
     */
    public static  Map<String,List<SharesBusiness>>  BUSINESS_MAP=new HashMap<>();

    /**
     * 涨幅达到10%提示
     */
    public static   Map<String,Long> ZF10_MAIL_MAP=new HashMap<>();
    /**
     * 涨幅达到10%提示
     */
    public static   Map<String,Long> JZ_MAIL_MAP=new HashMap<>();
    /**
     * 回撤提示
     */
    public static   Map<String,Long> BACK_MAIL_MAP=new HashMap<>();

    /***
     * 突破均线通知
     */
    public static   Map<String,Long> MAVG_MAP=new HashMap<>();
    /***
     * 突破最高点通知
     */
    public static   Map<String,Long> HIGH_MAP=new HashMap<>();
    /**
     * 异动通知
     */
    public static   Map<String,Long> YD_MAP=new HashMap<>();

    /**
     * 跟涨股数据
     */
    public static  Map<String,List<SharesData>> HIGT_SHARES_MAP=new HashMap<>();
}
